package com.dys.ai.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExceptionController {

    @GetMapping(value = "/demo")
    public String demo(){
        // 无/error映射路径，type=Internal Server Error, status=500
        throw new RuntimeException("测试异常");
    }
}
